import request from '@/utils/request'
//获取用户信息接口
export function Show(data) {
    return request({
        url: '/Admin/selectList',
        method: 'get',
        params: data
    })
}
//根据id查注册信息
export function Showid(data) {
    return request({
        url: '/Admin/selectbyID',
        method: 'get',
        params: data
    })
}
//删除对应列的用户（注册信息）
export function Deleteuser(data) {
    return request({
        url: '/Admin/delete',
        method: 'delete',
        params:data
    })
}
//获取角色信息
export function ShowRole(data) {
    return request({
        url: '/Admin/selectRole',
        method: 'get',
        data
    })
}
//根据id查角色表信息
export function SearchById(data) {
    return request({
        url: '/Admin/selectRoleByID',
        method: 'get',
        params:data
    })
}
//根据角色查询
export function SearchByrname(data) {
    return request({
        url: '/Admin/selectRoleByRname',
        method: 'get',
        params:data
    })
}
//通过id删除
export function deleterolebyid(data) {
    return request({
        url: '/Admin/deleteRole',
        method: 'delete',
        params:data
    })
}
//个人信息接口
export function ShowPerson(data) {
    return request({
        url: 'Admin/selectUserMsg',
        method: 'get',
        params:data
    })
}
// 更新个人信息
export function updataUser(data) {
    return request({
        url: 'Admin/selectUserMsg',
        method: 'post',
        data
    })
}
// 获取申请信息
export function ShowApply(data) {
    return request({
        url: 'Green/selectList',
        method: 'get',
        params:data
    })
}
//绿色通道查询
export function SearchApply(data) {
    return request({
        url: '/Green/selectById',
        method: 'post',
        params:data
    })
}
//绿色通道审核状态更改
export function ChangeState(data) {
    return request({
      url: '/Green/change',
      method: 'get',
      params:data
    });
}

export function Text(data) {
    return request({
        url: '/Admin/hello',
        method: 'post',
        data
    })
}

export function AddUser(data) {
    return request({
        url: 'Admin/signup',
        method: 'post',
        data
    })
}
//获取文章内容
export function getnews(data) {
    return request({
        url: '/news/selectById',
        method: 'get',
        params:data
    })
}

export function jb(data) {
    return request({
        url: '/StuDorm/selectByld',
        method: 'get',
        data
    })
}
//保存角色权限接口
export function saveUserRole(data) {
    return request({
        url: 'Admin/updateById',
        method: 'post',
        params:data
    })
}
//办理退寝
export function SetLeave(data) {
    return request({
      url: '/StuDorm/setLeave',
      method: 'post',
      data
    });
}

export function ShowDorm(data) {
    return request({
        url: '/dorm/selectList',
        method: 'get',
        params:data
    })
}
//删除寝室
export function RemoveDorm(data) {
    return request({
      url: '/Dorm/removeDorm',
      method: 'post',
      data
    });
}
//宿舍学生管理
export function SearchStu(data) {
    return request({
        url: '/StuDorm/searchStu',
        method: 'get',
        params:data
    })
}
export function ShowStu(data) {
    return request({
        url: '/Studorm/selectList',
        method: 'get',
        params:data
    })
}
//分配宿舍
export function AssignDorm(data) {
    return request({
      url: '/StuDorm/assignDorm',
      method: 'post',
      data
    });
}